
<!-- Image gallery sample
  images has hints with larger image and can be reordered using drag&drop
 -->


<style>
 {{{defaultstyle}}}
 h1 {margin-left: 10px}
 body {padding: 5 10; color: gray; background: white; }
 .container {
   draggable: true;
   transition: left 0.5s;
   transition: top 0.5s;
   display: inline-block;
   border: solid #bbb 1px;
   border-radius: 10px;
   box-shadow: 3 3 3 #888;
   margin: 10px 10px;
   padding: 10px 10px;
   width: 200px;
   height: 160px;
   text-align: center;
   cursor: pointer;
   background-color: white;
   font-size: 12px;
   position: relative;
   vertical-align: top;
  page-break-inside: avoid;
  }

  .container:hover {background-color: #ffa}

  .imgbox {
   display: inline-block; width: 200px; height: 140px; overflow: hidden;
  }

  .desc {position: absolute; bottom: 0px; left: 10px;}
  img {max-width: 200px; max-height: 140px; display: inline-block;

  }


</style>

<h1>Image Gallery</h1>

<DATAPACKET>
 <METADATA>
  <SQL type="directory">
   pics\*.jpg
  </SQL>
 </METADATA>
 <template-table custom="true">
  <div class="sortable">
  {{#rows}
   <div class="container" >
    <div class="imgbox" title="<img style=&quot;max-width:500px; max-height:400px;&quot; src=&quot;{{PATH}}{{NAME}}&quot;/>">
    <img src="/preview/{{PATH}}{{NAME}}" />
    </div>
   <div class="desc">{{NAME}}</div>
   </div>
  {{/rows}}
  </div>
 </template-table>
</DATAPACKET>


